package com.sc.mapper;

import com.sc.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.TreeSet;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User login(User u);
    User checkUser(String account);
    User checkTeacher(Integer classid);
    List<User> selectFrends(User u);
    int delAll(Integer[] ids);
    List<String> selectHeadpicById(Integer[] ids);
    int openAll(Integer[] ids);
    int closeAll(Integer[] ids);
    List<User> query(@Param("k") String keyword, @Param("t") Integer type);

    List<User> selectFrendsByPhone(@Param("user") User u,@Param("likes")String likes);

    List<User> selectAllfs(User u);

    List<User> selectAllfsByLikes(@Param("user") User u,@Param("likes")String likes);

    List<User> selectHmd(User u);

    List<User> selectHmdByLikes(@Param("user") User u,@Param("likes") String likes);
}